package com.cqq.print.business.dao.impl;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.cqq.print.business.dao.domain.PProduceDetail;
import com.cqq.print.business.dao.mapper.PProduceDetailMapper;


/**
 * @author generated
 * @date 2015-07-01
 */


@Repository(value="pProduceDetailDao")
public class PProduceDetailDaoImpl extends com.cqq.common.core.base.BaseDao implements com.cqq.print.business.dao.PProduceDetailDao{

             @Autowired
             private PProduceDetailMapper pProduceDetailMapper;



    public int deleteByPrimaryKey(Integer id){
        return pProduceDetailMapper.deleteByPrimaryKey(id);
    }

    public int insertSelective(PProduceDetail record){
        return pProduceDetailMapper.insertSelective(record);
    }

    public PProduceDetail selectByPrimaryKey(Integer id){
        return pProduceDetailMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(PProduceDetail record){
        return pProduceDetailMapper.updateByPrimaryKeySelective(record);
    }

	
	public List<PProduceDetail> queryDetailsByProduceId(Integer proId) {
		return pProduceDetailMapper.queryDetailsByProduceId(proId);
	}
	
	
	public List<PProduceDetail> queryDetailsWithProPlanByProduceId(Integer proId) {
		return pProduceDetailMapper.queryDetailsWithProPlanByProduceId(proId);
	}
	
	
	public void deleteByProduceId(Integer proId) {
		pProduceDetailMapper.deleteByProduceId(proId);
	}

	
	public List<PProduceDetail> queryDetailsByUserId(Map<String, Object> map) {
		return pProduceDetailMapper.queryDetailsByUserId(map);
	}

	
	public int queryCountDetailsByUserId(Map<String, Object> map) {
		return pProduceDetailMapper.queryCountDetailsByUserId(map);
	}



}